package com.jie.vod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author XieZhiJie
 * @create 2020-10-12 23:05
 */
@EnableDiscoveryClient  // nacos服务注册
@SpringBootApplication(
        // 因为启动会报数据源找不到的错误, 但是这个模块又不需要数据源, 因此加入这个配置
        exclude = DataSourceAutoConfiguration.class
)
@ComponentScan(basePackages = {"com.jie"})
public class VodApplication {
    public static void main(String[] args) {
        SpringApplication.run(VodApplication.class, args);
    }
}
